<!-- 待约面-约面 -->
<template>
  <div class="btns">
    <Button v-auth="'waitEntryByDeatil'" color="success" @click="entry">入职</Button>
    <Button v-auth="'waitEntryTerminate'" color="warning" @click="surrender">放弃</Button>
  </div>
  <Modal ref="modal"></Modal>
</template>

<script setup lang='ts'>
import { Button } from "@/components/Button";
import Modal from "../../../../Modals/Modal.vue";
import {ref} from "vue";
const modal =ref<any>(null)
const emits = defineEmits(['surrender'])

const surrender = () => {
  console.log('surrender')
  emits('surrender', '待入职')
}
 
const entry =()=>{
  modal.value.showDialog("EntryModal",'待入职')
  console.log('待入职','entry')
}



</script>
<style lang="less" scoped>
.btns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
</style>